package com.sqx.modules.recovery.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sqx.modules.goods.entity.Goods;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 二手物品回收估价表
 * @TableName goods_recovery
 */
@Data
public class GoodsRecoveryVO implements Serializable {
    /**
     * 
     */
    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    /**
     * 商品的id
     */
    @ApiModelProperty("商品的id")
    private Long goodId;

    /**
     * 商品品牌id
     */
    @ApiModelProperty("商品品牌id")
    private Long brandId;


    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


    /**
     * 品牌名称
     */
    @TableField(exist = false)
    @ApiModelProperty("品牌名称")
    private String brandName;

    /**
     * 商品的实体
     */
    @TableField(exist = false)
    private Goods goods;

    private static final long serialVersionUID = 1L;
}